package com.lc1993929.chapter21.consurrency;

/**
 * Created by LiuChang on 2018/10/23.
 */
public class PairManager1 extends PairManager {

    @Override
    public synchronized void increment() {
        p.incrementX();
        p.incrementY();
        store(getPair());
    }
}
